package com.huizhan.web.model;

import javax.persistence.*;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.*;
import io.swagger.annotations.*;
import java.util.Date;

/**
 * @Description 项目类型 
 * @Author  yanluping@outlook.com
 * @Date 2020-01-09 19:15:53 
 */
@JsonIgnoreProperties({"hibernateLazyInitializer","handler"})
@Entity
@ApiModel(value =  "项目类型")
@Table ( name ="Project_Type")
public class ProjectType  implements Serializable {

	private static final long serialVersionUID =  1708044347141039612L;

	/**
	 * 项目类型ID
	 */
	@ApiModelProperty(value = "项目类型ID")
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
   	@Column(name = "Project_Type_Id" )
	private Long projectTypeId;

	/**
	 * 类型名称
	 */
	@ApiModelProperty(value = "类型名称")
   	@Column(name = "Name" )
	private String name;

	/**
	 * 创建时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@ApiModelProperty(value = "创建时间",example = "2018-10-01 12:18:48")
   	@Column(name = "CreateDate" )
	private Date createDate;

	public Long getProjectTypeId() {
		return this.projectTypeId;
	}

	public void setProjectTypeId(Long projectTypeId) {
		this.projectTypeId = projectTypeId;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Date getCreateDate() {
		return this.createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	@Override
	public String toString() {
		return "{" +
					"projectTypeId='" + projectTypeId + '\'' +
					"name='" + name + '\'' +
					"createDate='" + createDate + '\'' +
				'}';
	}

}
